package com.gaber.springbootorderrabbitmqconsumer.service.direct;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Service;

/**
 * @author gaber
 * @date 2023/9/19 15:05:06
 * @description TODO
 */
@RabbitListener(queues = {"email.direct.queue"})
@Service
public class DirectEmailConsumer {

    @RabbitHandler
    public void reviceMessage(String message) {
        System.out.println("email direct---接收到了订单信息是：->" + message);
    }
}


